home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / network.z / network
Encoding:
Text File  |  1998-10-20  |  10.9 KB  |  331 lines

  1.  
  2.  
  3.  
  4. nnnneeeettttwwwwoooorrrrkkkk((((1111MMMM))))                                                        nnnneeeettttwwwwoooorrrrkkkk((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      network - network initialization and shutdown script
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////eeeettttcccc////iiiinnnniiiitttt....dddd////nnnneeeettttwwwwoooorrrrkkkk [ ssssttttaaaarrrrtttt | ssssttttoooopppp ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      The _n_e_t_w_o_r_k shell script is called during system startup from /_e_t_c/_r_c_2 to
  16.      initialize the standard and optional network devices and daemons.  The
  17.      script is called during system shutdown from /_e_t_c/_r_c_0 to gracefully kill
  18.      the daemons and inactivate the devices.
  19.  
  20.      When called with the _s_t_a_r_t argument, the _n_e_t_w_o_r_k script does the
  21.      following, using the various configuration flags described below:
  22.  
  23.      +o  Defines the hostname and hostid based on the name in /_e_t_c/_s_y_s__i_d and
  24.         its corresponding Internet address in /_e_t_c/_h_o_s_t_s.
  25.  
  26.      +o  Checks that the host's Internet address is not the default 192.0.2.1
  27.         Internet test address.  If the address is the default address, the
  28.         software is configured for standalone mode.  An Internet address other
  29.         than the default must be chosen in order to configure the network
  30.         properly.  See the guide _I_R_I_X _A_d_m_i_n: _N_e_t_w_o_r_k_i_n_g _a_n_d _M_a_i_l for
  31.         information on selecting an address.
  32.  
  33.      +o  Initializes the network interfaces.  The HyperNet interface is
  34.         initialized if the hypernet configuration flag is on.  If multiple
  35.         ethernet or FDDI interfaces are present, the script computes typical
  36.         primary and gateway interface names and addresses for most systems.
  37.         /_e_t_c/_c_o_n_f_i_g/_n_e_t_i_f._o_p_t_i_o_n_s provides a place for site-dependent network
  38.         interface definitions.  You need to modify this file only if:
  39.  
  40.         -  the computed primary and/or gateway interface names are incorrect
  41.  
  42.         -  you don't like convention used to define addresses for interfaces
  43.  
  44.         -  the host has more than 2 ethernet or FDDI interfaces
  45.  
  46.         Each interface must have a unique Internet address and hostname in
  47.         /_e_t_c/_h_o_s_t_s.  The script derives the names from /_e_t_c/_s_y_s__i_d.  The
  48.         prefix ggggaaaatttteeee---- is prepended to the hostname to generate the second
  49.         interface's name.  The suffix ----hhhhyyyy is appended to generate the HyperNet
  50.         interface's name.  For example:
  51.  
  52.              191.50.1.7     yosemite.parks.us       yosemite
  53.              137.254.2.49   gate-yosemite.parks.us  gate-yosemite
  54.              191.51.0.88    yosemite-hy.parks.us    yosemite-hy
  55.  
  56.         See the comments in /_e_t_c/_c_o_n_f_i_g/_n_e_t_i_f._o_p_t_i_o_n_s for details.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. nnnneeeettttwwwwoooorrrrkkkk((((1111MMMM))))                                                        nnnneeeettttwwwwoooorrrrkkkk((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      +o  Deletes existing routes.
  75.  
  76.      +o  Starts the standard networking daemons such as the routing, portmap
  77.         and DNS nameserver daemons.  Initializes the default multicast route.
  78.  
  79.      +o  (If the NFS option is installed).  Defines the NIS domain name using
  80.         /_v_a_r/_y_p/_y_p_d_o_m_a_i_n if it exists.  If the NIS domain is the same as the
  81.         Internet domain name in /_e_t_c/_s_y_s__i_d, then _y_p_d_o_m_a_i_n is not needed.
  82.         Starts name service daemons, mounts and exports NFS filesystems,
  83.         starts NFS automount, lock and status daemons.
  84.  
  85.      +o  Starts the _i_n_e_t_d, _t_i_m_e_d, _t_i_m_e_s_l_a_v_e, _r_a_r_p_d, and _r_w_h_o_d daemons.
  86.  
  87.      +o  Starts the 4DDN software (if installed).
  88.  
  89.      When called with the _s_t_o_p argument, the _n_e_t_w_o_r_k script gracefully
  90.      terminates daemons in the correct order, unmounts NFS filesystems and
  91.      inactivates the network interfaces.
  92.  
  93. CCCCOOOONNNNFFFFIIIIGGGGUUUURRRRAAAATTTTIIIIOOOONNNN FFFFLLLLAAAAGGGGSSSS
  94.      A daemon or subsystem is enabled if its configuration flag in the
  95.      /_e_t_c/_c_o_n_f_i_g directory in the oooonnnn state.  If a flag file is missing, the
  96.      flag is considered ooooffffffff.  Use the _c_h_k_c_o_n_f_i_g(1M) command to turn a flag oooonnnn
  97.      or ooooffffffff.  For example,
  98.  
  99.           chkconfig timed on
  100.  
  101.      enables the timed flag.  When invoked without arguments, _c_h_k_c_o_n_f_i_g prints
  102.      the state of all known flags.
  103.  
  104.      There are two special flags: verbose and network.  The verbose flag
  105.      controls the printing of the names of daemons as they are started and the
  106.      printing of NFS-mounted filesystem names as they are mounted and
  107.      unmounted.  The network flag allows incoming and outgoing traffic.  This
  108.      flag can be set off if you need to isolate the machine from network
  109.      without removing cables.
  110.  
  111.      The following table lists the configuration flags used to initialize
  112.      standard and optional software.
  113.  
  114.  
  115.      Flag        Action if oooonnnn
  116.  
  117.      rrrroooouuuutttteeeedddd      Start IP routing deamon
  118.  
  119.      ggggaaaatttteeeedddd       Start Cornell/Merit IP super-routing daemon instead of
  120.                  routed.
  121.  
  122.      mmmmrrrroooouuuutttteeeedddd     Start Stanford IP multicast routing daemon
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. nnnneeeettttwwwwoooorrrrkkkk((((1111MMMM))))                                                        nnnneeeettttwwwwoooorrrrkkkk((((1111MMMM))))
  137.  
  138.  
  139.  
  140.      nnnnaaaammmmeeeedddd       Start 4.3BSD Internet domain name server
  141.  
  142.      rrrrttttnnnneeeettttdddd      Initialize preemptable networking for real-time use
  143.  
  144.      rrrrwwwwhhhhoooodddd       Start 4.3BSD _r_w_h_o daemon
  145.  
  146.      ttttiiiimmmmeeeedddd       Start 4.3BSD time synchronization daemon
  147.  
  148.      ttttiiiimmmmeeeessssllllaaaavvvveeee   Start SGI time synchronization daemon
  149.  
  150.      hhhhyyyyppppeeeerrrrnnnneeeetttt    Initialize HyperNet controller and routes
  151.  
  152.      nnnnffffssss         Start NFS daemons, mount NFS filesystems
  153.  
  154.      aaaauuuuttttoooommmmoooouuuunnnntttt   Start NFS automounter daemon
  155.  
  156.      lllloooocccckkkkdddd       Start NFS lock and status daemons
  157.  
  158.      nnnnssssdddd         Enable name services, start _n_s_d daemon
  159.  
  160.      rrrraaaarrrrppppdddd       Start the Reverse ARP daemon
  161.  
  162.      yyyyppppmmmmaaaasssstttteeeerrrr    Start password server; nnnnssssdddd should also be oooonnnn.
  163.  
  164.      4444DDDDDDDDNNNN        Initialize 4DDN (DECnet connectivity) software
  165.  
  166.      Site-dependent options for daemons belong in ``options'' files in
  167.      /_e_t_c/_c_o_n_f_i_g.  Certain daemons require options so their options file must
  168.      contain valid information.  See the guide _I_R_I_X _A_d_m_i_n: _N_e_t_w_o_r_k_i_n_g _a_n_d _M_a_i_l
  169.      and the daemon's manual page in section 1M for details on valid options.
  170.  
  171.           File                  Status
  172.  
  173.      automount.options     optional
  174.  
  175.      biod.options          optional
  176.  
  177.      gated.options         optional
  178.  
  179.      ifconfig-1.options    optional   (for primary network interface)
  180.  
  181.      ifconfig-2.options    optional   (for gateway network interface)
  182.  
  183.      ifconfig-3.options    optional   (for 2nd gateway network interface)
  184.  
  185.      ifconfig-4.options    optional   (for 3rd gateway network interface)
  186.  
  187.      ifconfig-hy.options   optional   (for HyperNet interface)
  188.  
  189.      inetd.options         optional
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. nnnneeeettttwwwwoooorrrrkkkk((((1111MMMM))))                                                        nnnneeeettttwwwwoooorrrrkkkk((((1111MMMM))))
  203.  
  204.  
  205.  
  206.      mrouted.options       optional
  207.  
  208.      named.options         optional
  209.  
  210.      netif.options         optional   (to select different primary & gateway
  211.                                       interfaces, etc.)
  212.  
  213.      nfsd.options          optional
  214.  
  215.      nsd.options           optional
  216.  
  217.      portmap.options       optional
  218.  
  219.      rarpd.options         optional
  220.  
  221.      routed.options        optional
  222.  
  223.      rpc.passwd.options    optional
  224.  
  225.      rwhod.options         optional
  226.  
  227.      static-route.options  optional   (to specify static routes)
  228.  
  229.      timed.options         optional
  230.  
  231.      timeslave.options     required
  232.  
  233.      Site-dependent configuration commands to start and stop local daemons and
  234.      publish arp entries should be put in a separate shell script called
  235.      /_e_t_c/_i_n_i_t._d/_n_e_t_w_o_r_k._l_o_c_a_l.  Make symbolic links in /_e_t_c/_r_c_0._d and
  236.      /_e_t_c/_r_c_2._d to this file to have it called during system startup and
  237.      shutdown:
  238.  
  239.           ln -s /etc/init.d/network.local /etc/rc0.d/K39network
  240.           ln -s /etc/init.d/network.local /etc/rc2.d/S31network
  241.  
  242.      See /_e_t_c/_i_n_i_t._d/_n_e_t_w_o_r_k for the general format of the script.
  243.  
  244. FFFFIIIILLLLEEEESSSS
  245.      /etc/init.d/network
  246.      /etc/rc0.d/K40network   linked to network
  247.      /etc/rc2.d/S30network   linked to network
  248.      /etc/config             configuration flags and options files
  249.      /etc/sys_id             hostname
  250.      /etc/hosts              Internet address-name database
  251.      /var/yp/ypdomain        NIS domain name
  252.  
  253. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  254.      chkconfig(1M), rc0(1M), rc2(1M).
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. nnnneeeettttwwwwoooorrrrkkkk((((1111MMMM))))                                                        nnnneeeettttwwwwoooorrrrkkkk((((1111MMMM))))
  269.  
  270.  
  271.  
  272.      _I_R_I_X _A_d_m_i_n: _N_e_t_w_o_r_k_i_n_g _a_n_d _M_a_i_l
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.